-- GENERATED SPELL FOR [Summoned Wrath Hound] --


function spell0_21837(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21837', 2318, 1)
end

function spell1_21837(pUnit, Event) --@Double Breath,n/a--
pUnit:FullCastSpellOnTarget(36406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21837', 4500, 1)
end

function Sorts_21837(pUnit, Event)
local choix_sorts_21837 = math.random(0, 1)
if choix_sorts_21837 == 0 then
pUnit:RegisterEvent('spell0_21837', 1, 1)
end
if choix_sorts_21837 == 1 then
pUnit:RegisterEvent('spell1_21837', 1, 1)
end
end

function mob21837_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21837', math.random(1500, 3000), 1)
end

function mob21837_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21837_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21837_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21837, 1, 'mob21837_Action')
RegisterUnitEvent(21837, 2, 'mob21837_Leave')
RegisterUnitEvent(21837, 3, 'mob21837_Kill')
RegisterUnitEvent(21837, 4, 'mob21837_Die')
